package InterfaceStaff;

import java.awt.event.KeyEvent;
import java.sql.SQLException;
import java.util.List;
import java.util.logging.*;
import javax.swing.*;
import javax.swing.plaf.metal.MetalLookAndFeel;

public class FormBuatPresensi extends javax.swing.JFrame {

    /*
     * method dibwah digunakan untuk membuat tombol menjadi disable.
     */
    private void MatikanTombol() {
        Simpan.setEnabled(false);
        Hapus.setEnabled(false);
    }

    /*
     * konstruktor berisi setting pertama persensi pada saat program dijalankan
     */
    public FormBuatPresensi() {
        try {
            initComponents();
            List<Mahasiswa> mhs = (List<Mahasiswa>) Presensi.getKoneksi().getAllMahasiswa();
            PresensiModel model = new PresensiModel(mhs);
            TPresensi.setModel(model);
        } catch (Exception e) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, e);
        }
        getComboboxMakul();
        getComboboxPengampu();
        setTitle("Form Buat Presensi");
        setResizable(false);
        NIM.requestFocus();
        MatikanTombol();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel2 = new javax.swing.JPanel();
        jPopupMenu1 = new javax.swing.JPopupMenu();
        jPopupMenu2 = new javax.swing.JPopupMenu();
        jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
        jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
        popupMenu1 = new java.awt.PopupMenu();
        jLabel3 = new javax.swing.JLabel();
        namaMhs = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        NIM = new javax.swing.JTextField();
        Simpan = new javax.swing.JButton();
        Hapus = new javax.swing.JButton();
        Selesai = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        TPresensi = new javax.swing.JTable();
        Batal = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        makul = new javax.swing.JComboBox();
        pengampu = new javax.swing.JComboBox();
        Buka = new javax.swing.JButton();

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jCheckBoxMenuItem1.setSelected(true);
        jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");

        jCheckBoxMenuItem2.setSelected(true);
        jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");

        popupMenu1.setLabel("popupMenu1");

        jLabel3.setText("Nama Kategori");

        namaMhs.setToolTipText("Isikan Nama Kategori");
        namaMhs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                namaMhsActionPerformed(evt);
            }
        });

        jButton1.setText("jButton1");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(153, 153, 255));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, new java.awt.Color(204, 204, 204), null, null));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel1.setText("Buat Presensi");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jLabel4))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(185, 185, 185)
                        .addComponent(jLabel1)))
                .addContainerGap(199, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4))
        );

        NIM.setToolTipText("Isikan NIM");
        NIM.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NIMMouseClicked(evt);
            }
        });
        NIM.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NIMActionPerformed(evt);
            }
        });
        NIM.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                NIMKeyReleased(evt);
            }
            public void keyTyped(java.awt.event.KeyEvent evt) {
                NIMKeyTyped(evt);
            }
        });

        Simpan.setMnemonic('S');
        Simpan.setText("Simpan");
        Simpan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SimpanActionPerformed(evt);
            }
        });

        Hapus.setMnemonic('D');
        Hapus.setText("Hapus");
        Hapus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HapusActionPerformed(evt);
            }
        });

        Selesai.setMnemonic('K');
        Selesai.setText("Selesai");
        Selesai.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SelesaiActionPerformed(evt);
            }
        });

        jLabel2.setText("NIM");

        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        TPresensi.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        TPresensi.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "NIM", "Nama"
            }
        ));
        TPresensi.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                TPresensiMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(TPresensi);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
                .addContainerGap())
        );

        Batal.setMnemonic('B');
        Batal.setText("Batal");
        Batal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BatalActionPerformed(evt);
            }
        });

        jLabel6.setText("Mata Kuliah");

        jLabel7.setText("Pengampu");

        Buka.setText("Buka");
        Buka.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BukaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(33, 33, 33)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel2))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(NIM, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(makul, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(pengampu, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 120, Short.MAX_VALUE)
                        .addComponent(Buka))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap(102, Short.MAX_VALUE)
                        .addComponent(Simpan)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Hapus)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Batal)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Selesai)))
                .addGap(122, 122, 122))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(makul, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(pengampu, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(12, 12, 12)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(NIM, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addComponent(Buka)))
                .addGap(13, 13, 13)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Batal)
                    .addComponent(Hapus)
                    .addComponent(Selesai)
                    .addComponent(Simpan))
                .addGap(18, 18, 18)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /*
     * method dibawah merupakan perintah aksi menyimpan data.
     */
    private void SimpanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SimpanActionPerformed

        TabelPresensi tp = new TabelPresensi();
        String txtCombo = (String) pengampu.getSelectedItem();
        Pengampu pe = new Pengampu();
        pe.setNama_pengampu(txtCombo);

        String txtCombo2 = (String) makul.getSelectedItem();
        MataKuliah makul2 = new MataKuliah();
        makul2.setMakul(txtCombo2);

        Mahasiswa k = new Mahasiswa();
        String no = NIM.getText();

        k.setNIM(NIM.getText());
        tp.setNim(k);
        tp.setId_pengampu(pe);
        tp.setId_matakuliah(makul2);

        try {
            Presensi presensikontrol;
            presensikontrol = Presensi.getKoneksi();
            presensikontrol.cekNIM(tp);
            BukaActionPerformed(evt);
        } catch (SQLException ex) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_SimpanActionPerformed

    /*
     * method dibawah merupakan perintah aksi selesai.
     */
    private void SelesaiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SelesaiActionPerformed
        MenuUtama m = new MenuUtama();
        m.setVisible(true);
        dispose();
    }//GEN-LAST:event_SelesaiActionPerformed

    /*
     * method dibawah merupakan perintah aksi namaMhs.
     */
    private void namaMhsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_namaMhsActionPerformed
        if (!NIM.getText().equals("")) {
            Simpan.setEnabled(true);
            Hapus.setEnabled(true);
        }
    }//GEN-LAST:event_namaMhsActionPerformed

    /*
     * method dibawah merupakan perintah aksi hapus data.
     */
    private void HapusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HapusActionPerformed
        Mahasiswa k = new Mahasiswa();
        String id = NIM.getText();

        k.setNIM(id);

        Mahasiswa mhs = new Mahasiswa();
        mhs.setNIM(id);

        String txtCombo = (String) makul.getSelectedItem();
        MataKuliah mk = new MataKuliah();
        mk.setMakul(txtCombo);

        String txtCombo2 = (String) pengampu.getSelectedItem();
        Pengampu p = new Pengampu();
        p.setNama_pengampu(txtCombo2);

        TabelPresensi tp = new TabelPresensi();
        tp.setId_pengampu(p);
        tp.setId_matakuliah(mk);

        try {
            Presensi presensikontrol;
            presensikontrol = Presensi.getKoneksi();
            presensikontrol.delete(mhs, tp);
            JOptionPane.showMessageDialog(this, "Data telah dihapus");
            BukaActionPerformed(evt);
        } catch (SQLException ex) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(this, "Data Kategori Belum Dihapus");
        }
        Simpan.setText("Simpan");
        NIM.setEnabled(true);
        NIM.setText("");
        namaMhs.setText("");
        MatikanTombol();
        BukaActionPerformed(evt);
    }//GEN-LAST:event_HapusActionPerformed

    /*
     * method dibawah merupakan perintah aksi fokus NIM.
     */
    private void NIMKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NIMKeyTyped
        if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
            namaMhs.requestFocus();
        }

    }//GEN-LAST:event_NIMKeyTyped

    /*
     * method dibawah merupakan perintah aksi ketika NIM diisi.
     */
    private void NIMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NIMActionPerformed
        if (NIM.getText().equalsIgnoreCase("")) {
            Simpan.setEnabled(false);
        } else {
            Simpan.setEnabled(true);

        }
    }//GEN-LAST:event_NIMActionPerformed

    /*
     * method dibawah merupakan perintah aksi saat tabel diklik.
     */
    private void TPresensiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TPresensiMouseClicked
        int row = TPresensi.getSelectedRow();
        String nim = TPresensi.getValueAt(row, 0).toString();
        String nama = TPresensi.getValueAt(row, 1).toString();
        NIM.setText(nim);
        namaMhs.setText(nama);

        NIM.setEnabled(false);
        Hapus.setEnabled(true);
    }//GEN-LAST:event_TPresensiMouseClicked

    /*
     * method dibawah merupakan perintah aksi saat NIM diklik.
     */
    private void NIMMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NIMMouseClicked
        Simpan.setText("Simpan");
        MatikanTombol();
    }//GEN-LAST:event_NIMMouseClicked

    /*
     * method dibawah merupakan perintah aksi batal mengisi.
     */
    private void BatalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BatalActionPerformed
        Simpan.setText("Simpan");
        NIM.setEnabled(true);
        NIM.setText("");
        namaMhs.setText("");
        MatikanTombol();

    }//GEN-LAST:event_BatalActionPerformed

    /*
     * method dibawah merupakan perintah aksi saat NIM dikosongkan.
     */
    private void NIMKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NIMKeyReleased
        if (NIM.getText().equalsIgnoreCase("")) {
            Simpan.setEnabled(false);
            Hapus.setEnabled(false);
        } else {
            Simpan.setEnabled(true);
            Hapus.setEnabled(true);
        }
    }//GEN-LAST:event_NIMKeyReleased

    /*
     * method dibawah merupakanp perintah aksi membuka daftar presensi.
     */
    private void BukaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BukaActionPerformed

        String txtCombo = (String) makul.getSelectedItem();
        MataKuliah mk = new MataKuliah();
        mk.setMakul(txtCombo);

        String txtCombo2 = (String) pengampu.getSelectedItem();
        Pengampu p = new Pengampu();
        p.setNama_pengampu(txtCombo2);

        TabelPresensi tp = new TabelPresensi();
        tp.setId_pengampu(p);
        tp.setId_matakuliah(mk);

        try {
            List<Mahasiswa> m = (List<Mahasiswa>) Presensi.getKoneksi().getAllOpen(tp);
            PresensiModel model = new PresensiModel(m);
            TPresensi.setModel(model);
        } catch (SQLException ex) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_BukaActionPerformed

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    UIManager.setLookAndFeel(new MetalLookAndFeel());
                } catch (UnsupportedLookAndFeelException ex) {
                    Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, ex);
                }
                new FormBuatPresensi().setVisible(true);
            }
        });
    }

    /*
     * method untuk mengambil pengampu dari database dan menampilkanya dalam bentuk combobox.
     */
    public void getComboboxPengampu() {
        try {
            List<Pengampu> p = Presensi.getKoneksi().getAllPengampu();
            for (Pengampu k : p) {
                pengampu.addItem(k.getNama_pengampu());
            }
        } catch (Exception e) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, e);
        }

    }

    /*
     * method untuk mengambil mata kuliah dari database dan menampilkanya dalam bentuk combobox.
     */
    public void getComboboxMakul() {
        try {
            List<MataKuliah> m = Presensi.getKoneksi().getAllMakul();
            for (MataKuliah k : m) {
                makul.addItem(k.getMakul());
            }
        } catch (Exception e) {
            Logger.getLogger(FormBuatPresensi.class.getName()).log(Level.SEVERE, null, e);
        }

    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Batal;
    private javax.swing.JButton Buka;
    private javax.swing.JButton Hapus;
    private javax.swing.JTextField NIM;
    private javax.swing.JButton Selesai;
    private javax.swing.JButton Simpan;
    private javax.swing.JTable TPresensi;
    private javax.swing.JButton jButton1;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPopupMenu jPopupMenu1;
    private javax.swing.JPopupMenu jPopupMenu2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JComboBox makul;
    private javax.swing.JTextField namaMhs;
    private javax.swing.JComboBox pengampu;
    private java.awt.PopupMenu popupMenu1;
    // End of variables declaration//GEN-END:variables
}
